#pragma once
#include "basetool.h"
#include "comutil.h"

class CSystem;

class DEF_MODELTOOL CImportIDSTool : public CBaseTool
{
public:
	CImportIDSTool(void);
	virtual ~CImportIDSTool(void);

public:
	virtual bool Start();
	virtual bool End();

public:
	CSystem * Import(const CString & strPath);

protected:
	IXMLDOMNode * GetChildNodeByName(IXMLDOMNode *pRoot, const CString & strName);
	bool GetAttribValueByName(IXMLDOMNode *pRoot, const CString & strName, double & dblValue);
	bool GetAttribValueByName(IXMLDOMNode *pRoot, const CString & strName, _variant_t & vValue);
};